package com.knight.model;

import java.sql.JDBCType;
import java.util.List;

/**
 * 实体数据
 * @author suxin
 */
public class EntityDataModel {

    /**
     * 包名路径
     */
    private String packagePath;

    /**
     * 导入的包集合
     */
    private List<String> importPackageList;

    /**
     * 实体备注
     */
    private String entityNote;

    /**
     * 实体名前缀
     */
    private String entityNamePrefix;

    /**
     * 实体名称
     */
    private String entityName;

    /**
     * 实体名称后缀
     */
    private String entityNameSuffix;

    /**
     * 实体里的属性值集合
     */
    private List<Attributes> attributesList;

    public static class Attributes {

        private JDBCType jdbcType;

        /**
         * 属性类型名称
         */
        private String fieldType;

        /**
         * 属性名称
         */
        private String fieldName;

        /**
         * 属性备注
         */
        private String fieldNote;


        public String getFieldType() {
            return fieldType;
        }

        public void setFieldType(String fieldType) {
            this.fieldType = fieldType;
        }

        public String getFieldName() {
            return fieldName;
        }

        public void setFieldName(String fieldName) {
            this.fieldName = fieldName;
        }

        public String getFieldNote() {
            return fieldNote;
        }

        public void setFieldNote(String fieldNote) {
            this.fieldNote = fieldNote;
        }


        public JDBCType getJdbcType() {
            return jdbcType;
        }

        public void setJdbcType(JDBCType jdbcType) {
            this.jdbcType = jdbcType;
        }
    }

    public String getPackagePath() {
        return packagePath;
    }

    public void setPackagePath(String packagePath) {
        this.packagePath = packagePath;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public List<Attributes> getAttributesList() {
        return attributesList;
    }

    public void setAttributesList(List<Attributes> attributesList) {
        this.attributesList = attributesList;
    }

    public String getEntityNote() {
        return entityNote;
    }

    public void setEntityNote(String entityNote) {
        this.entityNote = entityNote;
    }

    public String getEntityNameSuffix() {
        return entityNameSuffix;
    }

    public void setEntityNameSuffix(String entityNameSuffix) {
        this.entityNameSuffix = entityNameSuffix;
    }

    public List<String> getImportPackageList() {
        return importPackageList;
    }

    public void setImportPackageList(List<String> importPackageList) {
        this.importPackageList = importPackageList;
    }

    public String getEntityNamePrefix() {
        return entityNamePrefix;
    }

    public void setEntityNamePrefix(String entityNamePrefix) {
        this.entityNamePrefix = entityNamePrefix;
    }
}
